<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
        <head>
                <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
                <title>钓场详情</title>
                <link href="__PUBLIC__/css/select.css" rel="stylesheet" type="text/css" />
                <link href="__PUBLIC__/css/style.css" rel="stylesheet" type="text/css" />
                <style>
                        *{ margin:0; padding:0;}
                        /*
                        #box{ margin:10px auto; width:540px; min-height:400px; background:#FF9}
                        #demo{ margin:10px auto; width:540px; min-height:800px; background:#CF9}
                        **/
                        #box{  width:960px;min-height:400px; background:#FF9}
                        #demo{  width:960px;min-height:800px; background:#CF9}
                </style>
                <script type="text/javascript" src="__PUBLIC__/js/jquery-1.9.0.min.js"></script>
                <!--<script type="text/javascript" src="__PUBLIC__/js/jquery-1.8.2.js"></script>-->
                <script type="text/javascript" src="__PUBLIC__/js/jquery.idTabs.min.js"></script>
                <script type="text/javascript" src="__PUBLIC__/js/select-ui.min.js"></script>
                <script type="text/javascript" src="__PUBLIC__/js/editor/kindeditor.js"></script>
                <script type="text/javascript" src="__PUBLIC__/js/layer/layer.js"></script>
                <script type="text/javascript" src="__PUBLIC__/js/laydate/laydate.js"></script>
                <script type="text/javascript" src="__PUBLIC__/js/swfobject.js"></script>

                <link rel="stylesheet" type="text/css" href="__PUBLIC__/css/webuploader.css"/>
                <link rel="stylesheet" type="text/css" href="__PUBLIC__/css/diyUpload.css"/>
                <script type="text/javascript" src="__PUBLIC__/js/webuploader.html5only.min.js"></script>
                <script type="text/javascript" src="__PUBLIC__/js/diyUpload.js"></script>

                <script type="text/javascript">
                        KE.show({
                                id: 'content7',
                                cssPath: './index.css'
                        });
                </script>

                <script type="text/javascript">
                        $(document).ready(function() {
                                /*                
                                 $(".select1").uedSelect({
                                 width: 345
                                 });
                                 $(".select2").uedSelect({
                                 width: 167
                                 });
                                 */
                                $(".select3").uedSelect({
                                        width: 100
                                });
                                //                                layer.msg("1");
                                //http://sentsin.com/layui/laydate/api.html   laydate API
                                laydate.skin("dahong");


                        });
                </script>
        </head>

        <body>

                <div class="place">
                        <span>位置：</span>
                        <ul class="placeul">
                                <li><a href="#">首页</a></li>
                                <li><a href="#">钓场管理</a></li>
                                <li><a href="#">钓场列表</a></li>
                                <li><a href="#">钓场详情</a></li>
                        </ul>
                </div>

                <div class="formbody">

                        <!--http://www.fullavatareditor.com/license.html  上传头像插件-->
                        <div id="usual1" class="usual"> 

                                <div class="itab">
                                        <ul> 
                                                <li><a href="#tab1" class="selected">钓场信息</a></li> 
                                                <li><a href="#tab2">钓场照片</a></li> 
                                                <!--
                                                <li><a href="#tab3">好友</a></li> 
                                                <li><a href="#tab4">约钓</a></li>
                                                <li><a href="#tab5">钓场</a></li>
                                                -->
                                        </ul>
                                </div> 

                                <div id="tab1" class="tabson">
                                        <!--
                                               <div class="formtext">Hi，<b>admin</b>，欢迎您试用信息发布功能！</div>
                                        -->
                                        <ul class="forminfo">
                                                <li>
                                                        <label>钓场名<b></b></label>
                                                        <input name="fishery_name" type="text" class="dfinput" value="{$fishplace['fishery_name']}"  style="width:200px;"/>
                                                        <!--<input name="" type="text" class="dfinput" value=""  style="width:518px;"/>-->
                                                </li>
                                                <li>
                                                        <label>钓场价格<b>*</b></label>  
                                                        <input name="fishery_price" type="text" class="dfinput" value="{$fishplace['fishery_price']}"  style="width:200px;"/>
                                                </li>
                                                <li>
                                                        <label>钓场星级<b></b></label>  
                                                        <input name="fishery_star" type="text" class="dfinput" value="{$fishplace['fishery_star']}"  style="width:200px;"/>
                                                </li>
                                                <li>
                                                        <label>钓场地址<b></b></label>  
                                                        <!--<input name="fishery_address" type="text" class="dfinput" value="{$fishplace['fishery_address']}"  style="width:200px;"/>-->
                                                        <!--省-->
                                                        <div class="vocation">
                                                                <select class="select3">
                                                                        <option>湖北省</option>
                                                                        <option>河南省</option>
                                                                </select>
                                                        </div>
                                                        <!--市-->
                                                        <div class="vocation">
                                                                <select class="select3">
                                                                        <option>宜昌市</option>
                                                                        <option>武汉市</option>
                                                                </select>
                                                        </div>
                                                        <!--县-->
                                                        <div class="vocation">
                                                                <select class="select3">
                                                                        <option>西陵区</option>
                                                                        <option>长阳县</option>
                                                                </select>
                                                        </div>
                                                </li>

                                                <li>
                                                        <label>钓场简介<b></b></label>  
                                                        <input name="fishery_description" type="text" class="dfinput" value="{$fishplace['fishery_description']}"  style="width:200px;"/>
                                                </li>

                                                <!--
                                                <li>
                                                        <label>通知内容<b>*</b></label>
                                                        <textarea id="content7" name="content" style="width:700px;height:250px;visibility:hidden;"></textarea>
                                                </li>
                                                -->
                                                <li>
                                                        <label>&nbsp;</label>
                                                        <input name="" type="button" class="btn" value="更新"/></li>
                                        </ul>
                                </div> 

                                <div id="tab2" class="tabson">  
                                        <div id="box">
                                                <div id="test" ></div>
                                        </div>
                                        <!--
                                        <div id="demo">
                                                <div id="as" ></div>
                                        </div>
                                        -->

                                        <ul class="imglist">

                                                <volist name="imageList" id="image">
                                                        <li class="selected">
                                                                <span><a href="__APP__{$image['img_url']}" target="_blank"><img src="__APP__{$image['img_url']}" width='168' height='126'/></a></span>
                                                                <h2><a href="#">{$image['memo']}</a></h2>
                                                                <p>
                                                                        <a href="#">编辑</a>&nbsp;&nbsp;&nbsp;&nbsp;
                                                                        <a href="#" onclick="delPic(this)">删除</a>
                                                                </p>
                                                        </li>
                                                </volist>
                                        </ul>
                                </div>
                                <script type="text/javascript">

                                        function delPic(obj){
                                                layer.msg("并没有从数据库删除，未完待续...");
                                                $(obj).parent().parent().remove();
                                        }
                                        /*
                                         * http://fex.baidu.com/webuploader/doc/index.html
                                         * 服务器地址,成功返回,失败返回参数格式依照jquery.ajax习惯;
                                         * 其他参数同WebUploader
                                         */
                                        $('#test').diyUpload({
                                                url: '{:U("Fishplace/upload_fishplace_pic")}',
                                                fileSingleSizeLimit: 50000 * 1024,
                                                formData: {
                                                        id_in_that_tab: {$fishplace["id"]},
                                                        fishery_name: '{$fishplace["fishery_name"]}'
                                                },
                                                success: function(data) {
                                                        console.info(data);
                                                        console.log(data);
                                                },
                                                error: function(err) {
                                                        console.info(err);
                                                }
                                        });
                                        /*
                                         $('#as').diyUpload({
                                         url: '{:U("Fishplace/upload_fishplace_pic")}',
                                         success: function(data) {
                                         console.info(data);
                                         },
                                         error: function(err) {
                                         console.info(err);
                                         },
                                         buttonText: '选择文件',
                                         chunked: true, //是否要分片处理大文件上传
                                         // 分片大小
                                         chunkSize: 512 * 1024,
                                         //最大上传的文件数量, 总文件大小,单个文件大小(单位字节);
                                         fileNumLimit: 50,
                                         fileSizeLimit: 500000 * 1024,
                                         fileSingleSizeLimit: 50000 * 1024,
                                         accept: {}
                                         });
                                         */
                                </script>
                                <!--
                                <div id="tab5" class="tabson">  
                                </div>
                                -->
                        </div> 

                        <script type="text/javascript">
                                $("#usual1 ul").idTabs();
                        </script>

                        <script type="text/javascript">
                                $('.tablelist tbody tr:odd').addClass('odd');
                        </script>





                </div>

        </body>
</html>
